<%@page import="com.aring.bean.School"%>
<%@page import="java.util.List"%>
<%@page import="com.aring.bean.Place"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
	    <title>场馆</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link href="../css/stadium.css" rel="stylesheet" type="text/css" media="screen">
		<script type="text/javascript" src="../js/jquery-1.9.0.min.js"></script>
	</head>
	<body>
	    <% List<School> schools =  (List<School>)session.getAttribute("schools");	    
	       int schoolId = Integer.valueOf(request.getParameter("schoolId"));
	       School school = schools.get(schoolId-1);
	       session.setAttribute("currentSchool", school);
	       List<Place> places = (List<Place>)session.getAttribute("places"); 
	    %>
		<ul id="nav">
			<h2 class="R-h2"><span>当前位置：<a href="../index.jsp">首 页</a> &gt; <a href="#"><%=school.getName()%></a> &gt; <a href="#">场馆选择</a></span><label>场馆</label></h2> 
		</ul>
		<div class="Main">
			<%
		        if(places!=null){	         
		          for(int i=0;i<places.size();i++){
		        	  Place place = places.get(i);
		     %>  <ul class="News_ul"> 
		        <li  class="Title"><a href="../getPlaceNumber.do?pageName=redirect:user/timeTable.jsp&placeId=<%=place.getP_no() %>" target="_blank">
		            <img src="<%=place.getImage_url()%>" style="height:200px;width:200px;"/>
		            <span class="stadium"><%=place.getType()%></a></span></span></a></li>
			    <li><span class="Title1">简介：<%=place.getContent()%></span></li>
			    </ul>              
		     <% }
		      }
			%> 
		</div>
	</body>
</html>